package com.stone.util;

import com.stone.po.Member;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DataUtils {

    public static List<Member> listMembers(int number) {
        List<Member> list = new ArrayList<>();
        for (int i = 0; i < number; i++) {
            list.add(
                    Member.builder()
                            .birthday(new Date())
                            .gender(i % 2)
                            .icon("icon")
                            .id(Long.valueOf(i))
                            .nickname("nickName : " + i)
                            .password("password : " + i)
                            .phone("1387383937" + i)
                            .username("userName" + i)
                            .build()
            );
        }
        return list;
    }
}
